﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Admin/Masters/Admin.master" CodeBehind="Themes.aspx.vb" Inherits="Boogaloo.Admin.UI.Webpages.Themes" 
    title="Mindfly Web Studio's Boogaloo - Host - Themes" %>
<%@ register tagprefix="boogaloo" assembly="Boogaloo.Admin" namespace="Boogaloo.Admin.UI.Controls" %>     
<%@ register tagprefix="mfb" tagname="hostThemes" src="~/Admin/Controls/Host_themes.ascx" %>
<script runat="server">
    '
    ' Boogaloo® - http://www.mindfly.com
    ' Copyright (c) 2008
    ' by Mindfly, Inc.
    '
    ' Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 
    ' documentation files (the "Software"), to deal in the Software without restriction, including without limitation 
    ' the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and 
    ' to permit persons to whom the Software is furnished to do so, subject to the following conditions:
    '
    ' The above copyright notice and this permission notice shall be included in all copies or substantial portions 
    ' of the Software.
    '
    ' THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
    ' INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    ' DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    ' SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    ' SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
    ' WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    ' THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    
</script>
<asp:content id="MainConent" contentplaceholderid="MainContent" runat="server">

<asp:ScriptManagerProxy id="ScriptManagerProxy1" runat="server">
    <Scripts>
        <asp:ScriptReference Path="DesignFiles.js" />
    </Scripts>
</asp:ScriptManagerProxy>

<h3>Themes</h3>

<div class="box clear">
    <h4>Themes Assigned to this host</h4>        
    <asp:updatepanel id="up" runat="server">
        <contenttemplate>
            <fieldset>
                <asp:checkboxlist id="chkl_themes" runat="server" repeatlayout="Flow" autopostback="true" />
            </fieldset>
           
           <asp:literal id="lit_success" runat="server">The theme was added successfully.</asp:literal>
           
            <asp:panel id="pnl_delete" runat="server">
                <div class="wizard warning active">
                    <h5>You are about to remove this theme from this website.</h5>
                    <asp:literal id="lit_remove_name" runat="server" />
                    <p>Did you mean to do this?<br />This action will NOT delete the theme from the server.</p>
                    <asp:linkbutton id="lb_delete" runat="server" class="button enriched" text="Yep, do it already" />
                    <asp:hyperlink id="hyp_cancel" runat="server" class="button enriched" text="I did not mean to hit that button" />
                </div>
            </asp:panel>
            <br />
            <boogaloo:labelhiddendropdownbox id="lhddl_globaltheme" tooltip="Click to globally assign the ASP.NET Theme to all pages within this host" cssclass="spnHiddenTextBox inlineEdit editBoxHint" runat="server" validate="false" linkbutton="Set all theme for all pages" cancel_text="Cancel" />
        
        </contenttemplate>    
    </asp:updatepanel>
</div>

<asp:updatepanel id="up_themeconfig" runat="server">
<contenttemplate>

<fieldset class="box">
    <h4>Theme Stylesheet Configuration</h4>

    <asp:label id="lbl_ddl_theme_config" runat="server" associatedcontrolid="ddl_theme_config">
    Select from Theme(s) associated with this website<br />
    <asp:dropdownlist id="ddl_theme_config" runat="server" autopostback="true" />
    </asp:label> <asp:hyperlink id="hyp_stylesheeteditor"  runat="server" text="Edit the style sheets in this theme" enabled="false" visible="false" />
    <br />

    <div>
        <asp:checkbox id="chk_manifest_bundle" runat="server" text="Bundle each conditional block into a single client side reference *" autopostback="true" /><br />
        <asp:checkbox id="chk_manifest_removewhitespace" runat="server" text="Remove whitespace and comments from stylesheets as rendering" autopostback="true" /><br />
        <asp:checkbox id="chk_manifest_compress" runat="server" text="Compress stylesheets" autopostback="true" />
        <span><em>* CSS stylesheets with specific media queries are not bundled.</em></span>
    </div>
    <br />

    <asp:repeater id="rpt_theme_conditions" runat="server">
    <headertemplate><ul class="list plain stylesheetConfigList"></headertemplate>
    <itemtemplate>
    <li>
        <h5>Stylesheet conditional grouping: <asp:label id="lbl_condition" runat="server" /></h5>
        <asp:repeater id="rpt_stylesheets" runat="server" onitemdatabound="rpt_stylesheets_ItemDataBound">
            <headertemplate><ul></headertemplate>
            <itemtemplate>        
            <li>
                <strong><em><asp:label id="lbl_css" runat="server" /></em></strong>
                <boogaloo:labelhiddendropdownbox id="lhddl_moveto_group" runat="server" label="Change group setting" cssclass="inlineEdit editBoxHint" cancel_text="Cancel" label_tooltip="Click to change this stylesheet's group setting" onclick="lhddl_moveto_group_Click"  />
                <boogaloo:labelhiddentextbox id="lht_media" runat="server" label="Media setting is default" cssclass="inlineEdit editBoxHint" cancel_text="Cancel" label_tooltip="Click to change the media settings for this stylesheet" onclick="lht_media_Click" />
            
            </li>
            </itemtemplate>
            <footertemplate></ul></footertemplate>
        </asp:repeater>
        
    </li>
    </itemtemplate>
    <footertemplate></ul></footertemplate>
    </asp:repeater>


</fieldset>

</contenttemplate>
</asp:updatepanel>



        
</asp:content>

<asp:content id="SubContent" contentplaceholderid="SubContent" runat="server">
    <boogaloo:htmlretriever id="htmlretriever" runat="server" html_for="themes_help" page_group="host" />
</asp:content>

